package com.zhl.generics_class6;

public class MyArrayList <E> {
    Object[] arr = new Object[10];
    private int size = 0;//记录当前位置
    public boolean add(E e) {
        arr[size++] = e;
        return true;
    }

    public E get(int index) {
         return (E) arr[index];
    }



}
